package com.example.demo.school.repositories;


import com.example.demo.school.models.StudentType;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class StudentTypeRepository extends BaseRepository<StudentType> {
    public List<StudentType> findAll() {
        return createQuery("from StudentType")
                .getResultList();
    }
}
